package cn.lizhangqu.kb.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by 柯尊诚 on 2015/11/6.
 * kzc
 */
public class Page <Entity extends Serializable> implements Serializable{

    private int code;
    private Entity entity;
    private List<Entity> list = new ArrayList<Entity>(0);
    private Paging paging;

    public int getCode() {
        return code;
    }

    public void setStatus(int status) {
        this.code = status;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public List<Entity> getData() {
        return list;
    }

    public void setResult(Entity entity) {
        this.entity = entity;
    }

    public Entity getResult() {
        return entity;
    }

    public void setResults(List<Entity> data) {
        this.setData(data);
    }

    public void setData(List<Entity> data) {
        this.list = data;
    }

    public List<Entity> getResults() {
        return getData();
    }

    public Paging getPaging() {
        return paging;
    }

    public void setPaging(Paging paging) {
        this.paging = paging;
    }
}
